Combined end-expiratory occlusion and end-inspiratory occlusion test